package com.syr.mybatis;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sunyiran
 * @since  2021/1/16
 */
@Getter
@Setter
public class PageQueryParam {

    /**
     * 单页数量
     */
    @CompareIgnore
    private Integer size;

    /**
     * 当前页
     */
    @CompareIgnore
    private Integer currentPage;

    /**
     * 排序字段,正序
     */
    @CompareIgnore
    private List<String> ascList = new ArrayList<>();

    /**
     * 排序字段,value =false ,倒序
     */
    @CompareIgnore
    private List<String> descList = new ArrayList<>();

    /**
     * 是否需要总数
     */
    @CompareIgnore
    private Boolean needCount;
}
